﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prop
{
    class Visitor
    {
        private int visitorId;
        private String lastName;
        private String firstName;
        private double balance;

        

        public Visitor(int visitorId, String lastName, String firstName, double balance)
        {
            this.visitorId = visitorId;
            this.lastName = lastName;
            this.firstName = firstName;
            this.balance = balance;
        }

        public int VisitorId
        {
            get { return this.visitorId; }
        }
        public String LastName
        {
            get { return this.lastName; }
        }
        public String FirstName
        {
            get { return this.firstName; }
        }
        public double Balance
        {
            get { return this.balance; }
            set { this.balance = value; }
        }

        
        
        public string getName()// returns 
        {
            return "Name: " + FirstName + " " + LastName;
        }
        public string getId()
        {

            return "Id: " + VisitorId;
        }
        public string getBalance()
        {
            return "Balance: " + Balance;
        }
        
    }
}
